<div class="ui table-wrap">
    <table class="ui celled table">
        <thead>
            <tr><th class="collapsing">名称</th>
            <th class="collapsing">链接</th>
            <th class="collapsing">pid</th>
            <th class="collapsing">描述</th>
            <th class="collapsing">类别</th>
        </tr></thead>
        <tbody>
            <% data.forEach(function(row){ %>
            <tr>
                <td data-name="username" data-value="<%=row.username%>"><%=row.username%></td>
                <td data-name="url" data-value="<%=row.url%>"><%=row.url%></td>
                <td data-name="pid" data-value="<%=row.pid%>"><%=row.pid%></td>
                <td data-name="descripion" data-value="<%=row.descripion%>"><%=row.descripion%></td>
                <td data-name="type" data-value="<%=row.type%>"><%=row.type%></td>
                <td>
                    <a class="edit" href="javascript:void(0);" data-id="<%=row.id%>" data-key="id" data-url="/admin/permission/update">编辑</a>&nbsp;&nbsp;
                    <a class="delete" href="javascript:void(0);" data-id="<%=row.id%>" data-key="id" data-url="/admin/permission/delete">删除</a>
                </td>
            </tr>
            <% }); %>
        </tbody>
    </table>
</div>
